package user;

public class User {

  private int id;
  private String name;
  private  String password;
  private int age;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
 public User(){}
    public User(int id, String name, String password, int age) {

        this.id = id;
        this.name = name;
        this.password = password;
        this.age = age;
    }

    @Override
    public String toString() {
        return "{" +
                "学号=" + id +
                ", 姓名='" + name + '\'' +
                ", 密码='" + password + '\'' +
                ", 年龄=" + age +
                '}';
    }
}
